d69c8addb90baedab7a4967d90740247afb1856f,test-src/com/redhat/ceylon/compiler/java/test/ConcurrentScheduler.java,ConcurrentScheduler,finished,#,19

Before Change


    
    @Override
    public void finished() {
        System.out.println("esperando a que termine el pool con " + tpool.getActiveCount() + " hilos activos y " + tpool.getTaskCount() + " tareas");
        try {
            while (tpool.getActiveCount() > 0) {
                tpool.awaitTermination(10, TimeUnit.SECONDS);

After Change


    
    @Override
    public void finished() {
        System.out.printf("Waiting for pool to finish with %d active threads and %d tasks%n", tpool.getActiveCount(), tpool.getTaskCount());
        try {
            tpool.shutdown();
            while (tpool.getActiveCount() > 0) {